-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shink all slots in parallel on startup #17308
Conversation
shrink_all_slots_us
|
Codecov Report
@@ Coverage Diff @@
## master #17308 +/- ##
=========================================
- Coverage 82.7% 82.7% -0.1%
=========================================
Files 421 421
Lines 118064 118076 +12
=========================================
- Hits 97687 97667 -20
- Misses 20377 20409 +32 |
runtime/src/accounts_db.rs
Outdated
} else { | ||
self.do_shrink_slot_forced_v1(slot); | ||
pub fn shrink_all_slots(&self, startup: bool) { | ||
if startup && self.caching_enabled { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any particular reason we can't do the parallel shrink when caching is not enabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't want to test that code path or be worried about it ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are actively maintaining and improving the caching code path. I have more confidence we will get that codepath right and keep it right.
Problem
validator startup time is painful - especially as # accounts grows. There will soon be an issue filed for this.
Summary of Changes
From verify_snapshot_bank, shrink slots in parallel.
Fixes #